package com.zxcz.service;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.multipart.MultipartFile;

import com.zxcz.domain.Firmware;
import com.zxcz.domain.PageResult;
import com.zxcz.domain.Result;
import com.zxcz.domain.User;
import com.zxcz.tools.Constants;

public interface FirmwareService {

	PageResult<Firmware> findPage(int pageNum, int pageSize, String userName);

	Result<Object> insertFirmwareIfNotPath(User user, MultipartFile firmwareFile, String version, String host);

	Result<Object> deleteFirmwareById(int id);

	Result<Object> updateFirmware(Firmware firmware, MultipartFile firmwareFile, String account, String host);

}
